package com.yyjj.yyjj.payment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yyjj.yyjj.enums.PaymentType;
import com.yyjj.yyjj.model.order.PaymentInfo;

import java.util.Map;

public interface PaymentInfoService extends IService<PaymentInfo> {

    //根据orderNo查询支付记录
    PaymentInfo getPaymentInfoByOrderNo(String orderNo);

    //添加支付记录
    PaymentInfo savePaymentInfo(String orderNo);
    //更改订单状态，处理支付结果
    void paySuccess(String out_trade_no, Map<String, String> resultMap);



}
